package com.ng.biz.model.mapping;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.ng.biz.model.domain.BlueprintDesigner;
import com.ng.biz.model.domain.BlueprintDesignerContent;
import com.ng.biz.model.domain.BlueprintNode;
import com.ng.biz.model.domain.BlueprintNodeCategory;
import com.ng.biz.model.domain.CollectorClient;
import com.ng.biz.model.domain.DataErrorLog;
import com.ng.biz.model.domain.DataLog;
import com.ng.biz.model.domain.DataLogInput;
import com.ng.biz.model.domain.DataLogOutput;
import com.ng.biz.model.domain.DataTask;
import com.ng.biz.model.domain.Datasource;
import com.ng.biz.model.domain.DatasourceGroup;
import com.ng.biz.model.domain.Dbapi;
import com.ng.biz.model.domain.DbapiGroup;
import com.ng.biz.model.domain.DbapiReqArguments;
import com.ng.biz.model.domain.DbapiSql;
import com.ng.biz.model.domain.Disk;
import com.ng.biz.model.domain.HttpApi;
import com.ng.biz.model.domain.MqttClient;
import com.ng.biz.model.domain.ParamModel;
import com.ng.biz.model.domain.ParamModelCategory;
import com.ng.biz.model.domain.Sql;
import com.ng.biz.model.domain.SqlCategory;
import com.ng.biz.model.domain.TestOltp;
import com.ng.biz.model.domain.Twin;
import com.ng.biz.model.domain.TwinBody;

/**
 * Generated by JFinal, do not modify this file.
 * <pre>
 * Example:
 * public void configPlugin(Plugins me) {
 *     ActiveRecordPlugin arp = new ActiveRecordPlugin(...);
 *     _MappingKit.mapping(arp);
 *     me.add(arp);
 * }
 * </pre>
 */
public class _MappingKit {
	
	public static void mapping(ActiveRecordPlugin arp) {
		arp.addMapping("biz_blueprint_designer", "id", BlueprintDesigner.class);
		arp.addMapping("biz_blueprint_designer_content", "id", BlueprintDesignerContent.class);
		arp.addMapping("biz_blueprint_node", "id", BlueprintNode.class);
		arp.addMapping("biz_blueprint_node_category", "id", BlueprintNodeCategory.class);
		arp.addMapping("biz_collector_client", "id", CollectorClient.class);
		arp.addMapping("biz_data_error_log", "id", DataErrorLog.class);
		arp.addMapping("biz_data_log", "id", DataLog.class);
		arp.addMapping("biz_data_log_input", "id", DataLogInput.class);
		arp.addMapping("biz_data_log_output", "id", DataLogOutput.class);
		arp.addMapping("biz_data_task", "id", DataTask.class);
		arp.addMapping("biz_datasource", "id", Datasource.class);
		arp.addMapping("biz_datasource_group", "id", DatasourceGroup.class);
		arp.addMapping("biz_dbapi", "id", Dbapi.class);
		arp.addMapping("biz_dbapi_group", "id", DbapiGroup.class);
		arp.addMapping("biz_dbapi_req_arguments", "id", DbapiReqArguments.class);
		// Composite Primary Key order: id,sql_id
		arp.addMapping("biz_dbapi_sql", "id,sql_id", DbapiSql.class);
		arp.addMapping("biz_disk", "id", Disk.class);
		arp.addMapping("biz_http_api", "id", HttpApi.class);
		arp.addMapping("biz_mqtt_client", "id", MqttClient.class);
		arp.addMapping("biz_param_model", "id", ParamModel.class);
		arp.addMapping("biz_param_model_category", "id", ParamModelCategory.class);
		arp.addMapping("biz_sql", "id", Sql.class);
		arp.addMapping("biz_sql_category", "id", SqlCategory.class);
		arp.addMapping("biz_test_oltp", "id", TestOltp.class);
		// Composite Primary Key order: actor_id,twin_id
		arp.addMapping("biz_twin", "actor_id,twin_id", Twin.class);
		// Composite Primary Key order: virtual,real
		arp.addMapping("biz_twin_body", "virtual,real", TwinBody.class);
	}
}


